﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace FXSStation.Modules.SharedInfrastructureModule.Extentions.TileView
{
    public class TileViewConfigurationElement : ConfigurationElement
    {
        public TileViewConfigurationElement()
        {

        }
        public TileViewConfigurationElement(double top, double left, double width, double height, string regionName)
        {
            this.Top = top;
            this.Left = left;
            this.Height = height;
            this.Width = width;
        }
        [ConfigurationProperty("Top", IsRequired = true)]
        public double Top
        {
            get { return (double)this["Top"]; }
            set { this["Top"] = value; }
        }

        [ConfigurationProperty("Left", IsRequired = true)]
        public double Left
        {
            get { return (double)this["Left"]; }
            set { this["Left"] = value; }
        }

        [ConfigurationProperty("Width", IsRequired = true)]
        public double Width
        {
            get { return (double)this["Width"]; }
            set { this["Width"] = value; }
        }

        [ConfigurationProperty("Height", IsRequired = true)]
        public double Height
        {
            get { return (double)this["Height"]; }
            set { this["Height"] = value; }
        }

        [ConfigurationProperty("RegionName", IsRequired = true)]
        public string RegionName
        {
            get { return (string)this["RegionName"]; }
            set { this["RegionName"] = value; }
        }

    }
}
